package com.mystudy.javalambdastudy.lambda.methondreference;

import lombok.Getter;
import lombok.Setter;

/**
 * TODO:
 *
 * @author acy
 * @since 2019/05/05 15:55
 */
@Getter
@Setter
public class MethodReferenceVo {
	private Integer value1;

	public MethodReferenceVo(Integer value1) {
		this.value1 = value1;
	}

	public static int staticCompareTwoValue(MethodReferenceVo vo1, MethodReferenceVo vo2){
		return vo1.getValue1()-vo2.getValue1();
	}

	public int compareTwoValue(MethodReferenceVo vo1, MethodReferenceVo vo2){
		return vo1.getValue1()-vo2.getValue1();
	}

	public int compareTwoValueOneParam( MethodReferenceVo vo2){
		return this.getValue1()-vo2.getValue1();
	}
}
